import json

import requests
import json

headers = {
    'Authorization': 'Bearer pat_9dvX7UD4dIDNXAJCUuAisvN3yGfHinB0u0SFAuEl2R0EL9bq6MVAfblSZccjtgKw',
    'Context-Type': 'application/json'
}

url = 'https://api.coze.cn/v3/chat'
data = {
    'bot_id': '7527516233181642795',
    'user_id': 'yml',
    'stream': False,
    'auto_save_history': True,
    'additional_message': [
        {
            'role': 'user',
            'content': '为了提升应用的相映熟虑与帧率',
            'context_type': 'text'

        }
    ]
}

response = requests.post(url, headers=headers, data=data)
print(response.text)
print(response)

